define(["jquery", "easy-admin"], function ($, ea) {

    var init = {
        table_elem: '#currentTable',
        table_render_id: 'currentTableRenderId',
        index_url: 'knscy.ticket_out_logs/index',
        add_url: 'knscy.ticket_out_logs/add',
        edit_url: 'knscy.ticket_out_logs/edit',
        delete_url: 'knscy.ticket_out_logs/delete',
        export_url: 'knscy.ticket_out_logs/export',
        modify_url: 'knscy.ticket_out_logs/modify',
    };

    var Controller = {

        index: function () {
            ea.table.render({
                init: init,
                cols: [[
                    {type: 'checkbox'},                    {field: 'id', title: 'id'},                    {field: 'uniacid', title: 'uniacid'},                    {field: 'ticket_sn', title: '票务编号'},                    {field: 'ticket_type', title: '门票类型1=门票2次卡3年卡'},                    {field: 'hx_user_id', title: '核销人的用户ID'},                    {field: 'admin_id', title: '管理员ID'},                    {field: 'tag', title: '日志标示'},                    {field: 'create_time', title: '创建时间'},                    {width: 250, title: '操作', templet: ea.table.tool},
                ]],
            });

            ea.listen();
        },
        add: function () {
            ea.listen();
        },
        edit: function () {
            ea.listen();
        },
    };
    return Controller;
});